<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>路由导航案例</title>
    <!-- 导入vue库依赖 -->
    <script src="./js/vue.js"></script>
    <script src="./js/vue-router.js"></script>
    <style>
        .content {
            width: 800px;
            text-align: center;
            margin: 0 auto;
            margin-top: 30px;
        }

        .header {
            text-align: center;
            font-weight: 700;
            font-size: 18px;
            color: white;
            background-color: rgba(15, 1, 3, 0.726);
        }

        .footer {
            text-align: center;
            color: white;
            font-size: 16px;
            background-color: gray;
        }

        .left {
            width: 150px;
            height: 100%;
            background-color: rgba(15, 1, 3, 0.726);
            float: left;
        }

        .right {
            float: left;
            height: 100%;
            width: 643px;
            text-align: center;
        }

        .right table {
            border-collapse: collapse;
            margin-left: 5px;
            width: 645px;
        }

        .right table thead th {
            border: 2px solid gray;
        }

        .right table tbody td {
            border: 2px solid gray;
        }

        .right table thead {
            background-color: gray;
        }

        .left ul {
            list-style-type: none;
            margin: 0px;
            padding: 0px;
            width: 100%;
        }

        .left ul li {
            width: 100%;
            height: 35px;
            line-height: 35px;
            font-size: 16px;
            text-align: center;
            background-color: gray;
            color: white;
            border-bottom: 2px solid white;
        }

        .main {

            width: 100%;
            height: 500px;
        }
    </style>
</head>

<body>
    <div id="app" class="content">
        <!-- 头部区域 -->
        <header class="header">传智后台管理系统</header>

        <!-- 中间主体区域 -->
        <div class="main">

            <!-- 左边导航栏 -->
            <div class="left">
                <ul>
                    <li>用户管理</li>
                    <li>权限管理</li>
                    <li>商品管理</li>
                    <li>订单管理</li>
                    <li>系统设置</li>
                </ul>
            </div>
            <!-- 右边内容展示区 -->
            <div class="right">
                <h3>用户管理区域</h3>
                <table>
                    <thead>
                        <tr>
                            <th>编号</th>
                            <th>姓名</th>
                            <th>年龄</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>1</td>
                            <td>zh</td>
                            <td>20</td>
                            <td>
                                <a href="javascript:;">详情</a>
                            </td>
                        </tr>
                        <tr>
                            <td>2</td>
                            <td>hz</td>
                            <td>22</td>
                            <td>
                                <a href="javascript:;">详情</a>
                            </td>
                        </tr>
                        <tr>
                            <td>3</td>
                            <td>ht</td>
                            <td>25</td>
                            <td>
                                <a href="javascript:;">详情</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>

        <!-- 底部区域 -->
        <footer class="footer">版权信息</footer>
    </div>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                msg: ''
            },
            methods: {
            },
        })
    </script>
</body>

</html>